﻿using System;
using System.CodeDom.Compiler;
using System.Diagnostics;
using Google.Protobuf;
using Google.Protobuf.Collections;
using Google.Protobuf.Reflection;

namespace EggLink.DanhengServer.Proto
{
	// Token: 0x02000743 RID: 1859
	[DebuggerDisplay("{ToString(),nq}")]
	public sealed class GetMaterialSubmitActivityDataScRsp : IMessage<GetMaterialSubmitActivityDataScRsp>, IMessage, IEquatable<GetMaterialSubmitActivityDataScRsp>, IDeepCloneable<GetMaterialSubmitActivityDataScRsp>, IBufferMessage
	{
		// Token: 0x170017C3 RID: 6083
		// (get) Token: 0x06005390 RID: 21392 RVA: 0x000E227F File Offset: 0x000E047F
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageParser<GetMaterialSubmitActivityDataScRsp> Parser
		{
			get
			{
				return GetMaterialSubmitActivityDataScRsp._parser;
			}
		}

		// Token: 0x170017C4 RID: 6084
		// (get) Token: 0x06005391 RID: 21393 RVA: 0x000E2286 File Offset: 0x000E0486
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageDescriptor Descriptor
		{
			get
			{
				return GetMaterialSubmitActivityDataScRspReflection.Descriptor.MessageTypes[0];
			}
		}

		// Token: 0x170017C5 RID: 6085
		// (get) Token: 0x06005392 RID: 21394 RVA: 0x000E2298 File Offset: 0x000E0498
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		MessageDescriptor IMessage.Descriptor
		{
			get
			{
				return GetMaterialSubmitActivityDataScRsp.Descriptor;
			}
		}

		// Token: 0x06005393 RID: 21395 RVA: 0x000E229F File Offset: 0x000E049F
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public GetMaterialSubmitActivityDataScRsp()
		{
		}

		// Token: 0x06005394 RID: 21396 RVA: 0x000E22B2 File Offset: 0x000E04B2
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public GetMaterialSubmitActivityDataScRsp(GetMaterialSubmitActivityDataScRsp other) : this()
		{
			this.retcode_ = other.retcode_;
			this.materialSubmitInfos_ = other.materialSubmitInfos_.Clone();
			this._unknownFields = UnknownFieldSet.Clone(other._unknownFields);
		}

		// Token: 0x06005395 RID: 21397 RVA: 0x000E22E8 File Offset: 0x000E04E8
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public GetMaterialSubmitActivityDataScRsp Clone()
		{
			return new GetMaterialSubmitActivityDataScRsp(this);
		}

		// Token: 0x170017C6 RID: 6086
		// (get) Token: 0x06005396 RID: 21398 RVA: 0x000E22F0 File Offset: 0x000E04F0
		// (set) Token: 0x06005397 RID: 21399 RVA: 0x000E22F8 File Offset: 0x000E04F8
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint Retcode
		{
			get
			{
				return this.retcode_;
			}
			set
			{
				this.retcode_ = value;
			}
		}

		// Token: 0x170017C7 RID: 6087
		// (get) Token: 0x06005398 RID: 21400 RVA: 0x000E2301 File Offset: 0x000E0501
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public RepeatedField<MaterialSubmitInfo> MaterialSubmitInfos
		{
			get
			{
				return this.materialSubmitInfos_;
			}
		}

		// Token: 0x06005399 RID: 21401 RVA: 0x000E2309 File Offset: 0x000E0509
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override bool Equals(object other)
		{
			return this.Equals(other as GetMaterialSubmitActivityDataScRsp);
		}

		// Token: 0x0600539A RID: 21402 RVA: 0x000E2318 File Offset: 0x000E0518
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public bool Equals(GetMaterialSubmitActivityDataScRsp other)
		{
			return other != null && (other == this || (this.Retcode == other.Retcode && this.materialSubmitInfos_.Equals(other.materialSubmitInfos_) && object.Equals(this._unknownFields, other._unknownFields)));
		}

		// Token: 0x0600539B RID: 21403 RVA: 0x000E2368 File Offset: 0x000E0568
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override int GetHashCode()
		{
			int num = 1;
			if (this.Retcode != 0U)
			{
				num ^= this.Retcode.GetHashCode();
			}
			num ^= this.materialSubmitInfos_.GetHashCode();
			if (this._unknownFields != null)
			{
				num ^= this._unknownFields.GetHashCode();
			}
			return num;
		}

		// Token: 0x0600539C RID: 21404 RVA: 0x000E23B5 File Offset: 0x000E05B5
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override string ToString()
		{
			return JsonFormatter.ToDiagnosticString(this);
		}

		// Token: 0x0600539D RID: 21405 RVA: 0x000E23BD File Offset: 0x000E05BD
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void WriteTo(CodedOutputStream output)
		{
			output.WriteRawMessage(this);
		}

		// Token: 0x0600539E RID: 21406 RVA: 0x000E23C8 File Offset: 0x000E05C8
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalWriteTo(ref WriteContext output)
		{
			if (this.Retcode != 0U)
			{
				output.WriteRawTag(56);
				output.WriteUInt32(this.Retcode);
			}
			this.materialSubmitInfos_.WriteTo(ref output, GetMaterialSubmitActivityDataScRsp._repeated_materialSubmitInfos_codec);
			if (this._unknownFields != null)
			{
				this._unknownFields.WriteTo(ref output);
			}
		}

		// Token: 0x0600539F RID: 21407 RVA: 0x000E2418 File Offset: 0x000E0618
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public int CalculateSize()
		{
			int num = 0;
			if (this.Retcode != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.Retcode);
			}
			num += this.materialSubmitInfos_.CalculateSize(GetMaterialSubmitActivityDataScRsp._repeated_materialSubmitInfos_codec);
			if (this._unknownFields != null)
			{
				num += this._unknownFields.CalculateSize();
			}
			return num;
		}

		// Token: 0x060053A0 RID: 21408 RVA: 0x000E246C File Offset: 0x000E066C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(GetMaterialSubmitActivityDataScRsp other)
		{
			if (other == null)
			{
				return;
			}
			if (other.Retcode != 0U)
			{
				this.Retcode = other.Retcode;
			}
			this.materialSubmitInfos_.Add(other.materialSubmitInfos_);
			this._unknownFields = UnknownFieldSet.MergeFrom(this._unknownFields, other._unknownFields);
		}

		// Token: 0x060053A1 RID: 21409 RVA: 0x000E24B9 File Offset: 0x000E06B9
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(CodedInputStream input)
		{
			input.ReadRawMessage(this);
		}

		// Token: 0x060053A2 RID: 21410 RVA: 0x000E24C4 File Offset: 0x000E06C4
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalMergeFrom(ref ParseContext input)
		{
			uint num;
			while ((num = input.ReadTag()) != 0U)
			{
				if (num != 56U)
				{
					if (num != 114U)
					{
						this._unknownFields = UnknownFieldSet.MergeFieldFrom(this._unknownFields, ref input);
					}
					else
					{
						this.materialSubmitInfos_.AddEntriesFrom(ref input, GetMaterialSubmitActivityDataScRsp._repeated_materialSubmitInfos_codec);
					}
				}
				else
				{
					this.Retcode = input.ReadUInt32();
				}
			}
		}

		// Token: 0x040020AA RID: 8362
		private static readonly MessageParser<GetMaterialSubmitActivityDataScRsp> _parser = new MessageParser<GetMaterialSubmitActivityDataScRsp>(() => new GetMaterialSubmitActivityDataScRsp());

		// Token: 0x040020AB RID: 8363
		private UnknownFieldSet _unknownFields;

		// Token: 0x040020AC RID: 8364
		public const int RetcodeFieldNumber = 7;

		// Token: 0x040020AD RID: 8365
		private uint retcode_;

		// Token: 0x040020AE RID: 8366
		public const int MaterialSubmitInfosFieldNumber = 14;

		// Token: 0x040020AF RID: 8367
		private static readonly FieldCodec<MaterialSubmitInfo> _repeated_materialSubmitInfos_codec = FieldCodec.ForMessage<MaterialSubmitInfo>(114U, MaterialSubmitInfo.Parser);

		// Token: 0x040020B0 RID: 8368
		private readonly RepeatedField<MaterialSubmitInfo> materialSubmitInfos_ = new RepeatedField<MaterialSubmitInfo>();
	}
}
